package beans;

import java.util.List;

import javax.ejb.LocalBean;
import javax.ejb.Stateless;
import javax.ejb.TransactionManagement;
import javax.ejb.TransactionManagementType;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import model.Plue;


/**
 * Session Bean implementation class PluesBean
 */
@Stateless
@TransactionManagement(TransactionManagementType.BEAN)
@LocalBean
public class PluesBean {

	@PersistenceContext
	private EntityManager em;
    /**
     * Default constructor. 
     */
    public PluesBean() {
        // TODO Auto-generated constructor stub
    }
    
    public List<Plue> GetAllPlues()
    {
    	em.createNamedQuery("select * from plues")
    }
    
    

}
